import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/capital_comparison_entity.g.dart';

@JsonSerializable()
class CapitalComparisonEntity {
  CapitalComparisonEntity(
      {this.amt1,
      this.amt2,
      this.amt_period,
      this.dep_bgt_eco_name,
      this.gov_bgt_eco_name,
      this.exp_func_name,
      this.fund_type_name,
      this.agency_name,
      this.radio
      });

  factory CapitalComparisonEntity.fromJson(Map<String, dynamic> json) =>
      $CapitalComparisonEntityFromJson(json);

  Map<String, dynamic> toJson() => $CapitalComparisonEntityToJson(this);

  String? amt1;
  String? amt2;
  String? amt_period;
  String? dep_bgt_eco_name;
  String? gov_bgt_eco_name;
  String? exp_func_name;
  String? fund_type_name;
  String? agency_name;
  String? radio;
}

@JsonSerializable()
class CapitalComparisonPageEntity {
  CapitalComparisonPageEntity();

  factory CapitalComparisonPageEntity.fromJson(Map<String, dynamic> json) =>
      $CapitalComparisonPageEntityFromJson(json);

  Map<String, dynamic> toJson() => $CapitalComparisonPageEntityToJson(this);

  int? total;
  int? size;
  int? current;
  int? pages;
  List<CapitalComparisonEntity>? records;
}
